
<script type="text/javascript">
          dogetconfig();
          function dogetconfig(){
              helpuid = {php echo empty($friendlistuid)?0:$friendlistuid;};
             $.ajax({
                  type: 'POST',
                  dataType : "json",
                  url:'/{php echo createMobileUrl("getconfig",array("themeid"=>$themeid));}',
                  data: {helpuid:helpuid},
                  success: function(data) {
                   data = data.message;
                     if(data.errcode == 0){
                        $('#centerimgs').html(decode(data.centerimgs));
                        $('#light').html(decode(data.iconlogo));
                        $('#imgs').html(decode(data.imgs));
                        $('#content').html(decode(data.content));     
                     }
                  },
                  error: function() {
                  }
              });
         } 


          function dosharepyq(type){
             $.ajax({
                  type: 'POST',
                  dataType : "json",
                  url:'/{php echo createMobileUrl("sharepyq",array("themeid"=>$themeid,"workerid"=>$workerid,"fromuid"=>$fromuid,"fopenid"=>$fopenid));}',
                  data: {type:type},
                  success: function(data) {
                 data = data.message;
                     if(data.errcode == 0){
                        {if $system['ruanjian']==2 && $_G['companyname'] !=='飞驰软件'}
                            closescreen();                          
                        {else}
                            {if $config['isicon']>0}
                            document.getElementById('mcover1').style.display='';
                            {/if}
                            {if $config['iscomm']==1}
                              {if ($system['fenxiao01'] >0 || $system['fenxiao04'] ==1 || $system['fenxiao05'] ==1  || $system['fenxiao07'] ==1 || $system['fenxiao08'] ==1)}
                                  document.getElementById('mcover2').style.display='';
                              {/if}
                            {/if}                    
                        {/if}
                          $("#dark" + data.lightsum).attr('src',data.lighticon);
                          if (data.ishasinfo == 0) {
                            showloginfree();
                          } else {
                            {if $config['isicon']>0 && $config['iconnum2'] == 0}
                                ds.dialog({
                                  title : '&#25805;&#20316;&#25552;&#31034;',
                                  content : '&#24744;&#30340;&#26377;&#25928;&#20998;&#20139;&#27425;&#25968;&#20026;'+data.lightsum+'次',
                                  yesText : '&#30830;&#23450;',
                                    timeout :3.5,
                                });
                                return false;
                            {/if}
                          }      
                     }else{
                        {if ($config['comm41']== 0 && $system['fenxiao07'] == 0)}
                         tips(data.msg);            
                        {/if}
                     }
                  },
                  error: function() {
                  }
              });
         } 
       {if $config['iscomm']==1 && $config['comm41'] > 0}
          function dosharehb(){
            wid = {php echo empty($workerid)?0:$workerid;};
             $.ajax({
                  type: 'POST',
                  dataType : "json",
                  url:'/{php echo createMobileUrl("sharehb",array("themeid"=>$themeid,"op"=>"comm"));}',
                  data: {GLat:GLat,GLng:GLng,wid:wid},
                  success: function(data) {
                      data = data.message;
                      if(data.errcode == 3){
                        ds.dialog({
                          title : '&#25805;&#20316;&#25552;&#31034;',
                          content : '&#24685;&#21916;&#24744;&#33719;&#24471;&#32418;&#x5305;'+data.fee+'&#20803;',
                          yesText : '&#30830;&#23450;',
                            timeout :3.5,
                        });
                      return false;
                     }else{
                      if(data.errcode == 2){
                        ds.dialog({
                          title : '&#25805;&#20316;&#25552;&#31034;',
                          content : '&#24685;&#21916;&#24744;&#33719;&#24471;&#32418;&#x5305;'+data.fee+'&#20803;,&#33258;&#21160;&#21040;&#24080;'+data.fee2+'&#20803;',
                          yesText : '&#30830;&#23450;',
                            timeout :4.0,
                        });
                      return false;
                     }else{
                      if(data.errcode == 5){
                        ds.dialog({
                          title : '&#25805;&#20316;&#25552;&#31034;',
                          content : data.msg,
                          yesText : '&#30830;&#23450;',
                            timeout :3.5,
                        });
                      return false;
                     }else{
                       tips(data.msg);
                     }}}
                  },
                  error: function() {
                  }
              });
          }  
       {/if}    
       {if $config['iscomm']==1 && $system['fenxiao07'] > 0}
          function doyaoyiyaohb(){

            wid = {php echo empty($workerid)?0:$workerid;};
             $.ajax({
                  type: 'POST',
                  dataType : "json",
                  url:'/{php echo createMobileUrl("yaoyiyao",array("themeid"=>$themeid,"op"=>"pyq"));}',
                  data: {GLat:GLat,GLng:GLng,wid:wid},
                  success: function(data) {
                      data = data.message;
                      if(data.errcode == 3){
                        ds.dialog({
                          title : '&#25805;&#20316;&#25552;&#31034;',
                          content : '&#24685;&#21916;&#24744;&#33719;&#24471;&#32418;&#x5305;'+data.fee+'&#20803;',
                          yesText : '&#30830;&#23450;',
                            timeout :3.5,
                        });
                      return false;
                     }else{
                      if(data.errcode == 2){
                        ds.dialog({
                          title : '&#25805;&#20316;&#25552;&#31034;',
                          content : '&#24685;&#21916;&#24744;&#44;&#32418;&#21253;&#21040;&#24080;'+data.fee2+'&#20803;',
                          yesText : '&#30830;&#23450;',
                            timeout :4.0,
                        });
                      return false;
                     }else{
                      if(data.errcode == 5){
                        ds.dialog({
                          title : '&#25805;&#20316;&#25552;&#31034;',
                          content : data.msg,
                          yesText : '&#30830;&#23450;',
                            timeout :5.0,
                        });
                      return false;
                     }else{
                       tips(data.msg);
                     }}}
                  },
                  error: function() {
                  }
              });
          }  
       {/if}   

</script>